package com.bsj.sipgateway.sip.event.offline;

import com.bsj.sipgateway.sip.event.EventSource;
import org.springframework.context.ApplicationEvent;

/**    
 * @Description: 离线事件类
 * @author bsj-chenjunkang
 * @date 2022/8/31
 */
public class OfflineEvent extends ApplicationEvent {
	
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public OfflineEvent(Object source) {
		super(source);
	}

	public OfflineEvent(EventSource source) {
		super(source);
		this.deviceId = source.getDeviceId();
		this.from = source.getFrom();
	}


	private String deviceId;
	
	private String from;

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}
}
